import React, { Component } from 'react'
import {Table, Tag, Space } from "antd";

const columns = [
	{
	  title: '用户名',
	  dataIndex: 'username',
	  key: 'username',
	},
	{
	  title: '名称',
	  dataIndex: 'nickname',
	  key: 'nickname',
	},
	{
		title: '联系方式',
		dataIndex: 'phone',
		key: 'phone',
	  },
	  {
		title: '性别',
		dataIndex: 'sex',
		key: 'sex',
	  },
	  {
		title: '角色',
		dataIndex: 'role',
		key: 'role',
	  },

	{
	  title: '操作',
	  key: 'action',
	  render: (text, record) => (
		<Space size="middle">
		  <a>修改</a>
		  <a>删除</a>
		</Space>
	  ),
	},
  ];

  const data = [
	{
	  key: '1',
	  username: 'John Brown',
	  nickname: 'New York No. 1 Lake Park',
	  phone: '1501551111',
	  sex: "男" ,
	  role: '超级管理员',
	},
	{
		key: '2',
		username: 'John Brown',
		nickname: 'New York No. 1 Lake Park',
		phone: '1501551111',
		sex: "男" ,
		role: '超级管理员',
	}
  ];

export default class Admin extends Component {

	constructor(props){
		super(props);
		this.state={
			data : []
		}
	}

componentDidMount(){
	
}

  render() {
	return (
		<Table columns={columns} dataSource={data} />
	)
  }
}
